﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lamex.SIESystemManager.Calculate
{
    public class C_D07
    {
        public double GetD07(string W1, string W2)
        {
            double TD07 = 0, Tw1 = 0, Tw2 = 0, Tw = 0;
            Tw1 = double.Parse(string.IsNullOrEmpty(W1) ? "0" : W1);
            Tw2 = double.Parse(string.IsNullOrEmpty(W2) ? "0" : W2);
            Tw = NumMAX(Tw1, Tw2);
            if (Tw < 550)//500
            {
                TD07 = 4 * 4.3;
            }
            else
            {
                TD07 = 4 * 6.9;
            }
            
            return TD07;
        }
        private static double NumMAX(double Tw1, double Tw2)
        {
            if (Tw1 > Tw2)
            {
                return Tw1;
            }
            return Tw2;
        }
    }
}
